import { createStore, applyMiddleware, combineReducers} from 'redux'
import thunk from 'redux-thunk'
import counter from './reducers/counter'
import baseInfo from './reducers/baseInfo'

const rootReducer = combineReducers({
  counter,
  baseInfo
})

const store = createStore(
  rootReducer,
  applyMiddleware(thunk)
)

export default store